#include <iostream>
using namespace std;
int main()
{
	int day;
	cin >> day;
	if(day == 1 || day == 3 || day == 5)
		cout << "NO" << endl; 
	else
		cout << "YES" << endl;
    return 0;
}
